<?php /*a:5:{s:54:"E:\course\blog\application/index/view\index\login.html";i:1517322857;s:55:"E:\course\blog\application/index/view\public\_meta.html";i:1517314784;s:54:"E:\course\blog\application/index/view\public\_nav.html";i:1517323871;s:57:"E:\course\blog\application/index/view\public\_footer.html";i:1517314877;s:53:"E:\course\blog\application/index/view\public\_js.html";i:1517314931;}*/ ?>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Dreamphp v1.0博客</title>
    <link rel="shortcut icon" href="/static/index/images/logo.jpg" type="image/x-icon">
    <link rel="stylesheet" href="/static/index/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/index/css/main.css">
</head>
<body>
<!--导航条-->
<nav class="navbar navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">
            <a href="<?php echo url('index/index/index'); ?>" class="navbar-brand">DreamPHP</a>
        </div>
        <div class="navbar-menu">
            <ul class="nav navbar-nav">
                <li><a href="<?php echo url('index/index/index'); ?>">首页</a></li>
                <?php if(is_array($cateInfo) || $cateInfo instanceof \think\Collection || $cateInfo instanceof \think\Paginator): $i = 0; $__LIST__ = $cateInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <li><a href="<?php echo url('index/index/index', ['cateid' => $vo['id']]); ?>"><?php echo htmlentities($vo['catename']); ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <?php if(session('?username')): ?>
                <li><a href="#"><?php echo session('username'); ?></a></li>
                <li><a href="<?php echo url('index/index/loginout'); ?>">退出</a></li>
                <?php else: ?>
                <li><a href="<?php echo url('index/index/login'); ?>">登录</a></li>
                <li><a href="register.html">注册</a></li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</nav>
<!--导航条-->

<!--主体部分-->
<div class="container home">
    <h1>登录<small>没有账号？<a href="register.html">注册</a></small></h1>
    <form action="" method="post" class="login">
        <div class="form-group">
            <label for="username" class="control-label">用户名</label>
            <input type="text" class="form-control" id="username" name="username" placeholder="用户名">
        </div>
        <div class="form-group">
            <label for="password" class="control-label">密码</label>
            <input type="password" class="form-control" id="password" name="password" placeholder="密码">
        </div>
        <div class="form-group">
            <label for="verify" class="control-label">验证码</label>
            <div class="input-group">
                <input type="text" class="form-control" id="verify" name="verify" placeholder="验证码">
                <span class="input-group-addon"><img src="<?php echo captcha_src(); ?>" alt="captcha" onclick="this.src='<?php echo captcha_src(); ?>'" /></span>
            </div>
        </div>
        <div class="form-group">
            <button class="btn btn-primary btn-block">登录</button>
        </div>
        <div class="form-group">
            <a href="#">忘记密码？</a>
        </div>
    </form>
</div>
<!--主体部分-->

<!--页脚部分-->
<div class="footer">
    <p>Copyright 2018 <a href="#">http://www.dreamphp.com.cn/</a> All Rights Reserved </p>
</div>
<!--页脚部分-->

<script src="/static/index/js/jquery-3.3.1.min.js"></script>
<script src="/static/index/js/bootstrap.min.js"></script>
</body>
</html>